#ifndef FBDEV_H
#define FBDEV_H

#include <opencv2/opencv.hpp>

class fbdev {
    public:
        fbdev(const char* fbdev);
        ~fbdev(void);
        void draw(int x, int y, int color);
        void clear(int color);
        void show(cv::Mat& img);
    private:
        int fd;
        int width;
        int height;
        int bpp;
        void* buf;
};

#endif